package com.zaoke.web.dao.food;

import java.util.Date;
import java.util.List;

import com.zaoke.web.bo.food.FoodPromotion;

public interface FoodPromotionDao {

	public List<FoodPromotion> getAllActivePromotionsByDates(Date start, Date end, Integer[] states);

	public List<FoodPromotion> getAllActivePromotions(Integer[] states);
	
	public boolean deletePromotionByFoodId(Long foodid);
	
	public boolean deletePromotionById(Long id);
	
	public boolean newFoodPromotion(FoodPromotion promotion,Long userid);
	
	public boolean updateFoodPromotion(FoodPromotion promotion,Long userid);
	
	public FoodPromotion getPromotionById(Long id);
	
}
